<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * 用户个人信息数据模型
 *
 * Date: 19/03/2018
 * @author George
 * @package App\Models
 */
class Personal extends Model
{
	/**
	 * 定义主键
	 *
	 * @var string
	 * Date: 27/04/2018
	 * @author George
	 */
	protected $primaryKey = 'identification';

	/**
	 * 禁用主键自增
	 *
	 * @var bool
	 * Date: 27/04/2018
	 * @author George
	 */
	public $incrementing = false;

	/**
	 * 定义不可填充字段
	 *
	 * @var array
	 * Date: 27/04/2018
	 * @author George
	 */
	protected $guarded = ['id'];

	/**
	 * 定义属性类型
	 *
	 * @var array
	 * Date: 18/05/2018
	 * @author George
	 */
	protected $casts = [
		'urgency' => 'array',
		'trade' => 'array',
		'skill' => 'array',
		'channel' => 'array'
	];
}
